#!/bin/bash
#basierl_arch="../"

# 挂载目录 变量  需要的自己加
WINDOWS_S="/dev/nvme0n1p2"	#磁盘设备名称
WINDOWS_D="/mnt/windows"	#目录地址

Linux_S="/dev/sda1"		#磁盘设备名称
Linux_D="/mnt/Linux"  	 #目录地址

D_disk_S="/dev/sda3"		#磁盘设备名称
D_disk="/mnt/D_disk"		#目录地址
echo;
read -p ":: ==>> Open[Y/y] :" DISKXZ
read -p ":: ==>> User Password [Root Permission Skip] : " DISKUPASS
case $DISKXZ in
	Y | y)
		echo
		echo "${DISKUPASS}" | sudo -S mkdir ${WINDOWS_D} ${Linux_D} ${D_disk} &> /dev/null
		echo "${DISKUPASS}" | sudo -S mount ${WINDOWS_S} ${WINDOWS_D} &> /dev/null || echo ":: Error: ${WINDOWS_D}."
		echo "${DISKUPASS}" | sudo -S mount ${Linux_S} ${Linux_D} &> /dev/null || echo ":: Error: ${Linux_D}."
		echo "${DISKUPASS}" | sudo -S mount ${D_disk_S} ${D_disk} &> /dev/null || echo ":: Error: ${D_disk}."
#        sudo -S mount ${D_disk_S} ${D_disk} #....
		echo
	lsblk
		sleep 2
		exit 0
;;       
    * ) 
		echo
		echo -e ":: 错误指令: ${w}${DISKXZ}.$h"
		exit 102
;;
esac

